import { http } from 'utils';
export const getUserInfo = () => {
  return async (dispatch) => {
    const res = await http.get('/user/profile');
    dispatch({ type: 'user/getUserInfo', payload: res.data.data });
  };
};
